package builder;

import builder.base.Person;
import builder.base.Woman;

/**
 * @author: whh
 * @Date: 2021/6/8
 * @Description:
 */
public class WomanBuilder implements PersonBuilder {
    Person person;
    public WomanBuilder() {
      person = new Woman();
    }
    @Override
    public void buildBody() {
      person.setBody("建造女人的身体");
    }
    @Override
    public void buildFoot() {
      person.setFoot("建造女人的脚");
    }
    @Override
    public void buildHead() {
      person.setHead("建造女人的头");
    }
    @Override
    public Person buildPerson() {
      return person;
    }

}
